Integrand size = 29, antiderivative size = 115 \[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\frac {\cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m,1-m,-\frac {2 (3-4 \sin (e+f x))}{1+\sin (e+f x)}\right ) (3-4 \sin (e+f x))^{-m} \sqrt {\frac {1-\sin (e+f x)}{1+\sin (e+f x)}} (3+3 \sin (e+f x))^m}{\sqrt {7} f m (1-\sin (e+f x))} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {2867, 134} \[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\frac {\sqrt {\frac {1-\sin (e+f x)}{\sin (e+f x)+1}} \cos (e+f x) (3-4 \sin (e+f x))^{-m} (a \sin (e+f x)+a)^m \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m,1-m,-\frac {2 (3-4 \sin (e+f x))}{\sin (e+f x)+1}\right )}{\sqrt {7} f m (1-\sin (e+f x))} \]
[In]
[Out]
Rule 134
Rule 2867
Rubi steps \begin{align*} \text {integral}& = \frac {\left (a^2 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(3-4 x)^{-1-m} (a+a x)^{-\frac {1}{2}+m}}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}} \\ & = \frac {\cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m,1-m,-\frac {2 (3-4 \sin (e+f x))}{1+\sin (e+f x)}\right ) (3-4 \sin (e+f x))^{-m} \sqrt {\frac {1-\sin (e+f x)}{1+\sin (e+f x)}} (a+a \sin (e+f x))^m}{\sqrt {7} f m (1-\sin (e+f x))} \\ \end{align*}
Result contains complex when optimal does not.
Time = 9.95 (sec) , antiderivative size = 274, normalized size of antiderivative = 2.38 \[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=-\frac {3^m \operatorname {Hypergeometric2F1}\left (1+m,1+2 m,2 (1+m),-\frac {8 \sqrt {7} (\cos (e+f x)+i (1+\sin (e+f x)))}{\left (-7 i+\sqrt {7}\right ) \left (3 i+\sqrt {7}-4 \cos (e+f x)-4 i \sin (e+f x)\right )}\right ) (3-4 \sin (e+f x))^{-1-m} \left (-3 i+\sqrt {7}+4 \cos (e+f x)+4 i \sin (e+f x)\right ) \left (\frac {\left (7 i+\sqrt {7}\right ) \left (-3 i+\sqrt {7}+4 \cos (e+f x)+4 i \sin (e+f x)\right )}{\left (-7 i+\sqrt {7}\right ) \left (3 i+\sqrt {7}-4 \cos (e+f x)-4 i \sin (e+f x)\right )}\right )^m (1+\sin (e+f x))^m (i \cos (e+f x)+\sin (e+f x)) (\cos (e+f x)+i (1+\sin (e+f x)))}{\left (-7 i+\sqrt {7}\right ) f (1+2 m)} \]
[In]
[Out]
\[\int \left (3-4 \sin \left (f x +e \right )\right )^{-1-m} \left (a +a \sin \left (f x +e \right )\right )^{m}d x\]
[In]
[Out]
\[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-4 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
\[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \left (3 - 4 \sin {\left (e + f x \right )}\right )^{- m - 1}\, dx \]
[In]
[Out]
\[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-4 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
\[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-4 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int (3-4 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{{\left (3-4\,\sin \left (e+f\,x\right )\right )}^{m+1}} \,d x \]
[In]
[Out]